package com.mySampleApplication.client.codeRule;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.smartgwt.client.widgets.grid.ListGridRecord;

import java.util.List;
import java.util.Map;

@RemoteServiceRelativePath("CodeRuleService")
public interface CodeRuleService extends RemoteService {
    String getMessage(Map<String, String> data, List<Map<String, String>> list, Map<String,String> map);
    String getTotal(Map<String, String> map);

    CodeRuleDto getSelect(Map<String, String> map, Map<String, String> mapPage);

    CodeRuleDto getSelectVs(String id, Map<String, String> mapPage);

    String setInsert(Map<String, String> map);

    String setUpdate(Map<String, String> map);

    String setStatus(Map<String, String> map);
    String setSbInsert(Map<String, String> map);
    String setSbUpdate(Map<String, String> map);
    String deleteCodeRuleVersion(Map<String, String> map);
    CodeRuleDto getCodeRuleAtterVersionMapList(Map<String, String> map);
    CodeRuleDto getCodeRuleVersionMap(Map<String, String> map);
    String setDelete(int[] ids);
    String deleteById(String id);

    Map<String, String> selectById(String id);


    public static class App {
        private static CodeRuleServiceAsync ourInstance = GWT.create(CodeRuleService.class);

        public static synchronized CodeRuleServiceAsync getInstance() {
            return ourInstance;
        }
    }
}
